// Fill out your copyright notice in the Description page of Project Settings.

#pragma once

/**
 * Enum for road mark weight.
 */
enum class FWorldRoadMarkWeight
{
	Standard,
	Bold
};

inline FWorldRoadMarkWeight FWorldRoadMarkWeightFromJson(const json& j)
{
	if (j == "standard")	return FWorldRoadMarkWeight::Standard;
	if (j == "bold")		return FWorldRoadMarkWeight::Bold;
	return FWorldRoadMarkWeight::Standard;
}

inline json FWorldRoadMarkWeightToJson(FWorldRoadMarkWeight p)
{
	if (p == FWorldRoadMarkWeight::Standard)	return "standard";
	if (p == FWorldRoadMarkWeight::Bold)		return "bold";
	return "standard";
}

inline void from_json(const json& j, FWorldRoadMarkWeight& p)
{
	p = FWorldRoadMarkWeightFromJson(j);
}

inline void to_json(json& j, const FWorldRoadMarkWeight& p)
{
	j = FWorldRoadMarkWeightToJson(p);
}
